package cate.game.role.pvp.minecraft.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdMinecraft;

@ClientMsg(title = "矿洞争霸-挑战区 查看挂机奖励 请求")
public class MinecraftChallengeWatchReq implements MsgInput {
    @Override
    public MsgConfig conf() {
        return MsgIdMinecraft.MINECRAFT_CHALLENGE_WATCH_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getPvp().minecraft.challengePO.receiveOrWatchHangReward(true);
    }
}
